<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <ul class="nav nav-tabs" >
        <li class="active">
            <a href="#tab-general" data-toggle="tab" aria-expanded="false">基本信息</a>
        </li>
        <li class="">
            <a href="#tab-address" data-toggle="tab" aria-expanded="false">地址信息</a>
        </li>
        <li class="">
            <a href="#tab-content" data-toggle="tab" aria-expanded="false">详情描述</a>
        </li>
        <li class="">
            <a href="#tab-images" data-toggle="tab" aria-expanded="false">图片信息</a>
        </li>
        <li class="">
            <a href="#tab-orther" data-toggle="tab" aria-expanded="false">其他信息</a>
        </li>
    </ul>
    <div class="tab-content" style="padding-top: 10px;">
        <div class="tab-pane active" id="tab-general">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Alias_name')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-alias_name" class="form-control" name="row[alias_name]" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Sale_state')}:</label>
                <div class="col-xs-12 col-sm-8">
                    
                    <div class="radio">
                    {foreach name="saleStateList" item="vo"}
                    <label for="row[sale_state]-{$key|htmlentities}"><input id="row[sale_state]-{$key|htmlentities}" name="row[sale_state]" type="radio" value="{$key|htmlentities}" {in name="key" value="1"}checked{/in} /> {$vo|htmlentities}</label>
                    {/foreach}
                    </div>

                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Is_low_price_protect')}:</label>
                <div class="col-xs-12 col-sm-8">
                    
                    <div class="radio">
                    {foreach name="isLowPriceProtectList" item="vo"}
                    <label for="row[is_low_price_protect]-{$key|htmlentities}"><input id="row[is_low_price_protect]-{$key|htmlentities}" name="row[is_low_price_protect]" type="radio" value="{$key|htmlentities}" {in name="key" value="1"}checked{/in} /> {$vo|htmlentities}</label>
                    {/foreach}
                    </div>

                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('是否热销首页推荐')}:</label>
                <div class="col-xs-12 col-sm-8">
                    
                    <div class="radio">
                    {foreach name="isHotList" item="vo"}
                    <label for="row[is_hot]-{$key|htmlentities}"><input id="row[is_hot]-{$key|htmlentities}" name="row[is_hot]" type="radio" value="{$key|htmlentities}" {in name="key" value="1"}checked{/in} /> {$vo|htmlentities}</label>
                    {/foreach}
                    </div>
        
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('优惠')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-discounts" class="form-control" name="row[discounts]" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('首付价格信息')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-first_price_msg" class="form-control" name="row[first_price_msg]" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('热门信息')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-hot_msg" class="form-control" name="row[hot_msg]" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-price" data-rule="required" class="form-control" step="0.01" name="row[price]" type="number" value="0.00">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Min_total_price')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-min_total_price" data-rule="required" class="form-control" step="0.01" name="row[min_total_price]" type="number" value="0.00">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Max_total_price')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-max_total_price" data-rule="required" class="form-control" step="0.01" name="row[max_total_price]" type="number" value="0.00">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('House_type_id')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-house_type_id" data-rule="required" data-source="xiluhouse/house/housetype/index" data-params='{"custom[status]":"normal"}' class="form-control selectpage" name="row[house_type_id]" type="text" value="">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('House_developer_id')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-house_developer_id" data-rule="required" data-source="xiluhouse/house/housedeveloper/index" data-params='{"custom[status]":"normal"}' class="form-control selectpage" name="row[house_developer_id]" type="text" value="">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('House_tag_ids')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-house_tag_ids" data-rule="required" data-source="xiluhouse/house/housetag/index" data-multiple="true" data-params='{"custom[classify]":1,"custom[status]":"normal"}' class="form-control selectpage" name="row[house_tag_ids]" type="text" value="">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Min_room_num')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-min_room_num" class="form-control" name="row[min_room_num]" type="number" value="0">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Max_room_num')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-max_room_num" class="form-control" name="row[max_room_num]" type="number" value="0">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Min_space')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-min_space" class="form-control" step="0.01" name="row[min_space]" type="number" value="0.00">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Max_space')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-max_space" class="form-control" step="0.01" name="row[max_space]" type="number" value="0.00">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Opentime')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-opentime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[opentime]" type="text" value="{:date('Y-m-d')}">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Deliverytime')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-deliverytime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[deliverytime]" type="text" value="{:date('Y-m-d')}">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="0">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
                <div class="col-xs-12 col-sm-8">
                    
                    <div class="radio">
                    {foreach name="statusList" item="vo"}
                    <label for="row[status]-{$key|htmlentities}"><input id="row[status]-{$key|htmlentities}" name="row[status]" type="radio" value="{$key|htmlentities}" {in name="key" value="normal"}checked{/in} /> {$vo|htmlentities}</label>
                    {/foreach}
                    </div>
        
                </div>
            </div>
        </div>
        <div class="tab-pane" id="tab-address">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">省市区街道:</label>
                <div class="col-xs-12 col-sm-8">
                    <div class="form-inline" data-toggle="cxselect" data-selects="prov,city,region,street">
                        <select class="prov form-control" data-rule="required" name="prov" data-url="xiluhouse/ajax/area">
                        </select>
                        <select class="city form-control" data-rule="required" name="city" data-url="xiluhouse/ajax/area">
                        </select>
                        <select class="region form-control" data-rule="required" name="region" data-url="xiluhouse/ajax/area">
                        </select>
                        <select class="street form-control" data-rule="required" name="street" data-url="xiluhouse/ajax/area">
                        </select>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Addr')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-addr"  data-rule="required" class="form-control" name="row[addr]" type="text">
                </div>
            </div>
            <div style="color: #18bc9c;" data-toggle="addresspicker" data-lat-id="c-lat" data-lng-id="c-lng">点击这里打开地图选择经纬度（如果不填写经纬度，则会自动根据填写的地址生成经纬度）</div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Lat')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-lat" class="form-control" name="row[lat]" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Lng')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-lng" class="form-control" name="row[lng]" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Nearby_bus_num')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-nearby_bus_num" class="form-control" name="row[nearby_bus_num]" type="number" value="0">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Nearby_subway_num')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-nearby_subway_num" class="form-control" name="row[nearby_subway_num]" type="number" value="0">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Nearby_school_num')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-nearby_school_num" class="form-control" name="row[nearby_school_num]" type="number" value="0">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Nearby_shop_num')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-nearby_shop_num" class="form-control" name="row[nearby_shop_num]" type="number" value="0">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Nearby_hospital_num')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-nearby_hospital_num" class="form-control" name="row[nearby_hospital_num]" type="number" value="0">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Nearby_bus_json')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <dl class="fieldlist" data-name="row[nearby_bus_json]" data-template="nearbybusjsontpl">
                        <dd>
                            <ins>名称</ins>
                            <ins>经度</ins>
                            <ins>纬度</ins>
                            <ins>距离</ins>
                        </dd>
                        <dd>
                        <a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 追加</a>
                        </dd>
                        <textarea name="row[nearby_bus_json]" class="form-control hide" cols="50" rows="5"></textarea>
                    </dl>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Nearby_subway_json')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <dl class="fieldlist" data-name="row[nearby_subway_json]" data-template="nearbysubwayjsontpl">
                        <dd>
                            <ins>名称</ins>
                            <ins>经度</ins>
                            <ins>纬度</ins>
                            <ins>距离</ins>
                        </dd>
                        <dd>
                        <a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 追加</a>
                        </dd>
                        <textarea name="row[nearby_subway_json]" class="form-control hide" cols="50" rows="5"></textarea>
                    </dl>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Nearby_school_json')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <dl class="fieldlist" data-name="row[nearby_school_json]" data-template="nearbyschooljsontpl">
                        <dd>
                            <ins>名称</ins>
                            <ins>经度</ins>
                            <ins>纬度</ins>
                            <ins>距离</ins>
                        </dd>
                        <dd>
                        <a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 追加</a>
                        </dd>
                        <textarea name="row[nearby_school_json]" class="form-control hide" cols="50" rows="5"></textarea>
                    </dl>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Nearby_shop_json')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <dl class="fieldlist" data-name="row[nearby_shop_json]" data-template="nearbyshopjsontpl">
                        <dd>
                            <ins>名称</ins>
                            <ins>经度</ins>
                            <ins>纬度</ins>
                            <ins>距离</ins>
                        </dd>
                        <dd>
                        <a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 追加</a>
                        </dd>
                        <textarea name="row[nearby_shop_json]" class="form-control hide" cols="50" rows="5"></textarea>
                    </dl>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Nearby_hospital_json')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <dl class="fieldlist" data-name="row[nearby_hospital_json]" data-template="nearbyhospitaljsontpl">
                        <dd>
                            <ins>名称</ins>
                            <ins>经度</ins>
                            <ins>纬度</ins>
                            <ins>距离</ins>
                        </dd>
                        <dd>
                        <a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 追加</a>
                        </dd>
                        <textarea name="row[nearby_hospital_json]" class="form-control hide" cols="50" rows="5"></textarea>
                    </dl>
                </div>
            </div>
        </div>
        <div class="tab-pane" id="tab-content">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50"></textarea>
                </div>
            </div>
        </div>
        <div class="tab-pane" id="tab-images">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <div class="input-group">
                        <input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text">
                        <div class="input-group-addon no-border no-padding">
                            <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                            <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                        </div>
                        <span class="msg-box n-right" for="c-image"></span>
                    </div>
                    <ul class="row list-inline plupload-preview" id="p-image"></ul>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Build_image')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <div class="input-group">
                        <input id="c-build_image" class="form-control" size="50" name="row[build_image]" type="text">
                        <div class="input-group-addon no-border no-padding">
                            <span><button type="button" id="plupload-build_image" class="btn btn-danger plupload" data-input-id="c-build_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-build_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                            <span><button type="button" id="fachoose-build_image" class="btn btn-primary fachoose" data-input-id="c-build_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                        </div>
                        <span class="msg-box n-right" for="c-build_image"></span>
                    </div>
                    <ul class="row list-inline plupload-preview" id="p-build_image"></ul>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <dl class="fieldlist images_fieldlist" data-name="row[images]" data-template="testtpl">
                        <dd>
                            <ins>图片标注</ins>
                            <ins>图片</ins>
                        </dd>
                        <dd>
                        <a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 追加</a>
                        </dd>
                        <textarea name="row[images]" class="form-control hide" cols="30" rows="5"></textarea>
                    </dl>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Vr_url')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-vr_url" class="form-control" name="row[vr_url]" type="text">
                </div>
            </div>
        </div>
        <div class="tab-pane" id="tab-orther">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Building_descript')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <dl class="fieldlist" data-name="row[building_descript]" data-template="building_descripttpl">
                        <dd>
                            <ins>名称</ins>
                            <ins>值</ins>
                        </dd>
                        <dd>
                        <a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 追加</a>
                        </dd>
                        <textarea name="row[building_descript]" class="form-control hide" cols="50" rows="5"></textarea>
                    </dl>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Property_descript')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <dl class="fieldlist" data-name="row[property_descript]" data-template="property_descripttpl">
                        <dd>
                            <ins>名称</ins>
                            <ins>值</ins>
                        </dd>
                        <dd>
                        <a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 追加</a>
                        </dd>
                        <textarea name="row[property_descript]" class="form-control hide" cols="50" rows="5"></textarea>
                    </dl>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Cosult_tel')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-cosult_tel" class="form-control" name="row[cosult_tel]" type="text">
                </div>
            </div>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
<!--定义模板-->
<script type="text/html" id="testtpl">
    <dd class="form-inline">
        <input type="text" name="row[<%=name%>][<%=index%>][name]" class="form-control" value="<%=row['name']%>" size="10">
        
        <div class="input-group">
            <input id="c-images<%=index%>" type="textarea" name="row[<%=name%>][<%=index%>][images]" class="form-control" value="<%=row['images']%>">
            <div class="input-group-addon no-border no-padding">
                <span><button type="button" id="plupload-images<%=index%>" class="btn btn-danger plupload" data-input-id="c-images<%=index%>" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-images<%=index%>"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                <span><button type="button" id="fachoose-images<%=index%>" class="btn btn-primary fachoose" data-input-id="c-images<%=index%>" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
            </div>
            <span class="msg-box n-right" for="c-images<%=index%>"></span>
        </div>
        <ul style="margin-bottom: 10px;" class="row list-inline plupload-preview" id="p-images<%=index%>"></ul>
        <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span> <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
    </dd>
</script>
<script type="text/html" id="building_descripttpl">
    <dd class="form-inline">
        <input type="text" name="row[<%=name%>][<%=index%>][name]" class="form-control" value="<%=row['name']%>" size="10">
        <input type="text" name="row[<%=name%>][<%=index%>][value]" class="form-control" value="<%=row['value']%>" size="10">
        <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span> <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
    </dd>
</script>
<script type="text/html" id="property_descripttpl">
    <dd class="form-inline">
        <input type="text" name="row[<%=name%>][<%=index%>][name]" class="form-control" value="<%=row['name']%>" size="10">
        <input type="text" name="row[<%=name%>][<%=index%>][value]" class="form-control" value="<%=row['value']%>" size="10">
        <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span> <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
    </dd>
</script>
<script type="text/html" id="nearbybusjsontpl">
    <dd class="form-inline">
        <input type="text" name="row[<%=name%>][<%=index%>][name]" class="form-control" placeholder="名称" value="<%=row['name']%>" size="10">
        <input type="text" id="nearby_lng_bus_<%=index%>" name="row[<%=name%>][<%=index%>][lng]" placeholder="经度" class="form-control" value="<%=row['lng']%>" size="10">
        <input type="text" id="nearby_lat_bus_<%=index%>" name="row[<%=name%>][<%=index%>][lat]" placeholder="纬度" class="form-control" value="<%=row['lat']%>" size="10">
        <input type="text" name="row[<%=distance%>][<%=index%>][distance]" class="form-control" placeholder="距离" value="<%=row['distance']%>" size="10">
        <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span> <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
        <div style="color: #18bc9c;" data-toggle="addresspicker" data-lat-id="nearby_lat_bus_<%=index%>" data-lng-id="nearby_lng_bus_<%=index%>">点击这里打开地图选择经纬度（如果不填写经纬度，则会自动根据填写的地址生成经纬度）</div>
    </dd>
</script>
<script type="text/html" id="nearbysubwayjsontpl">
    <dd class="form-inline">
        <input type="text" name="row[<%=name%>][<%=index%>][name]" class="form-control" placeholder="名称" value="<%=row['name']%>" size="10">
        <input type="text" id="nearby_lng_subway_<%=index%>" name="row[<%=name%>][<%=index%>][lng]" placeholder="经度" class="form-control" value="<%=row['lng']%>" size="10">
        <input type="text" id="nearby_lat_subway_<%=index%>" name="row[<%=name%>][<%=index%>][lat]" placeholder="纬度" class="form-control" value="<%=row['lat']%>" size="10">
        <input type="text" name="row[<%=distance%>][<%=index%>][distance]" class="form-control" placeholder="距离" value="<%=row['distance']%>" size="10">
        <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span> <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
        <div style="color: #18bc9c;" data-toggle="addresspicker" data-lat-id="nearby_lat_subway_<%=index%>" data-lng-id="nearby_lng_subway_<%=index%>">点击这里打开地图选择经纬度（如果不填写经纬度，则会自动根据填写的地址生成经纬度）</div>
    </dd>
</script>
<script type="text/html" id="nearbyschooljsontpl">
    <dd class="form-inline">
        <input type="text" name="row[<%=name%>][<%=index%>][name]" class="form-control" placeholder="名称" value="<%=row['name']%>" size="10">
        <input type="text" id="nearby_lng_school_<%=index%>" name="row[<%=name%>][<%=index%>][lng]" placeholder="经度" class="form-control" value="<%=row['lng']%>" size="10">
        <input type="text" id="nearby_lat_school_<%=index%>" name="row[<%=name%>][<%=index%>][lat]" placeholder="纬度" class="form-control" value="<%=row['lat']%>" size="10">
        <input type="text" name="row[<%=distance%>][<%=index%>][distance]" class="form-control" placeholder="距离" value="<%=row['distance']%>" size="10">
        <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span> <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
        <div style="color: #18bc9c;" data-toggle="addresspicker" data-lat-id="nearby_lat_school_<%=index%>" data-lng-id="nearby_lng_school_<%=index%>">点击这里打开地图选择经纬度（如果不填写经纬度，则会自动根据填写的地址生成经纬度）</div>
    </dd>
</script>
<script type="text/html" id="nearbyshopjsontpl">
    <dd class="form-inline">
        <input type="text" name="row[<%=name%>][<%=index%>][name]" class="form-control" placeholder="名称" value="<%=row['name']%>" size="10">
        <input type="text" id="nearby_lng_shop_<%=index%>" name="row[<%=name%>][<%=index%>][lng]" class="form-control" placeholder="经度" value="<%=row['lng']%>" size="10">
        <input type="text" id="nearby_lat_shop_<%=index%>" name="row[<%=name%>][<%=index%>][lat]" class="form-control" placeholder="纬度" value="<%=row['lat']%>" size="10">
        <input type="text" name="row[<%=distance%>][<%=index%>][distance]" class="form-control" placeholder="距离" value="<%=row['distance']%>" size="10">
        <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span> <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
        <div style="color: #18bc9c;" data-toggle="addresspicker" data-lat-id="nearby_lat_shop_<%=index%>" data-lng-id="nearby_lng_shop_<%=index%>">点击这里打开地图选择经纬度（如果不填写经纬度，则会自动根据填写的地址生成经纬度）</div>
    </dd>
</script>
<script type="text/html" id="nearbyhospitaljsontpl">
    <dd class="form-inline">
        <input type="text" name="row[<%=name%>][<%=index%>][name]" class="form-control" placeholder="名称" value="<%=row['name']%>" size="10">
        <input type="text" id="nearby_lng_hospital_<%=index%>" name="row[<%=name%>][<%=index%>][lng]" placeholder="经度" class="form-control" value="<%=row['lng']%>" size="10">
        <input type="text" id="nearby_lat_hospital_<%=index%>" name="row[<%=name%>][<%=index%>][lat]" placeholder="纬度" class="form-control" value="<%=row['lat']%>" size="10">
        <input type="text" name="row[<%=distance%>][<%=index%>][distance]" class="form-control" placeholder="距离" value="<%=row['distance']%>" size="10">
        <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span> <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
        <div style="color: #18bc9c;" data-toggle="addresspicker" data-lat-id="nearby_lat_hospital_<%=index%>" data-lng-id="nearby_lng_hospital_<%=index%>">点击这里打开地图选择经纬度（如果不填写经纬度，则会自动根据填写的地址生成经纬度）</div>
    </dd>
</script>

